﻿using System;

namespace Program12
{
    public enum Gender
    {
        男,
        女
    }
    //结构体
    public struct Person
    {
        public string Nmae;//字段
        public Gender Gender;
        public int Age;
    }
    class Program
    {
        static void Main(string[] args)
        {
            Person person1;
            person1.Nmae = "1Rice";
            person1.Gender = Gender.男;
            person1.Age = 20;
            Console.WriteLine("姓名：{0},性别:{1},年龄:{2}", person1.Nmae, person1.Gender, person1.Age);
        }
    }
}
